#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = 0);
    ~MainWindow();

private:
    int burnFunction();
    void* threadRun(void *);
    static void* threadTask( void* classPtr );
    void createThread();
    void realTimeSleep(long long umicoroSecond);

private slots:
    void on_checkBox_isStart_clicked(bool checked);

private:
    pthread_t threadId[100];
    Ui::MainWindow *ui;
    int priority;
    int threadCount;
    int sleepTime;//
    int currentThreadId;
    bool isQuitThread;
    int loopCount;
};

#endif // MAINWINDOW_H
